
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Unilluminated    by Free CSS Templates</title>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
	<div id="header-wrapper">
		<div id="header">
			<div id="logo">
				<h1><a href="#">event management system </a></h1>
				<p> design by <a href="http://www.freecsstemplates.org/">event management team</a></p>
			</div>
		</div>
	</div>
	<!-- end #header -->
	<div id="menu">
		<ul>
			<li class="current_page_item"><a href="../viewevent1.php">Home</a></li>
			<li><a href="createevent.php">create event</a></li>
			<li><a href="usercontact.php">user contact</a></li>
			<li><a href="useredit.php">user edit</a></li>
			<li><a href="editevent.php">editevent</a></li>
			<li><a href="userbookingmanagement.php">booking manage </a></li>
		</ul>
	</div>
	<!-- end #menu -->
	<div id="page">
		<div id="page-bgtop">
			<div id="page-bgbtm">
				<marquee>welcome to eventmanagement system</marquee>
				<div id="content">
				  <div class="post"></div>
</div>
				<div id="sidebar">
					<ul>
						<li><form action="http://www.google.com/search" method="get" target="_blank">
<input name="q" type="text"><input type="submit" value="Search" />
</form></li>
		<li>
		login your account
		</li>
		
		
		<li>
<?php
session_start();
$userid = $_SESSION['userid'];
if($userid=="")
{
header("location:../login.php");
exit;
}
else{
$result=mysql_query("SELECT * FROM users WHERE id='".$_SESSION['userid']."' ")
or die(mysql_error());
$row=mysql_fetch_array($result);
$group=$row['usergroup'];
if($group=="eventmanager"||$group=="admin")
{
//echo "welcome";
}
else{
header("location:../login.php");
exit;
}
}
?>						
												
<?php
session_start();
if($_SESSION['userid'] != "")
{
$result=mysql_query("SELECT * FROM users WHERE id='".$_SESSION['userid']."' ")
or die(mysql_error());
$row=mysql_fetch_array($result);
 
 $fname=$row["fname"];
 $lname=$row["lname"];

echo' <table width="230" height="105" border="1" cellpadding="0" cellspacing="0">
   <tr bgcolor="#CC6600">
    <td> <h3>welcome</h3></td></tr>
    <tr bgcolor="#CC6600">
    <td> <h3>'.$lname.' </h3></td>
   </tr>
    <tr bgcolor="#CC6600">
      <td> <h3>'.$fname.' </h3></td> 
   </tr>
   </table>';
   ?>
  
    <li><a href="../logout.php">>logout</a></li>
    <li><a href="createevent.php">>Create Event</a></li> 
 <?php
//echo  "welcome  ".$fname." ".$lname."";
//echo "  <a href='logout.php'>logout</a>";
	
	}
	else{
	
	?>
	
	<form name="form1" method="post" action="login.php?action=login">
  <table width="243" height="105" border="1" cellpadding="0" cellspacing="0">
    <tr bgcolor="#CC6600">
      <td width="93"><h3>email</h3></td>
      <td width="144"><label>
        <input type="text" name="email" />
        </label>
          <label></label></td>
    </tr>
    <tr bgcolor="#CC6600">
      <td><h3>password</h3></td>
      <td><label>
        <input type="password" name="password" />
      </label></td>
    </tr>
    <tr bgcolor="#CC6600">
      <td height="28" colspan="2"><label> </label>
          <div align="center">
            <input type="submit" name="Submit" value="login" />
        </div></td>
    </tr>
  </table>
</form>
<?php
}
?>

					  </li>
						<li>
							<h2>Account seting</h2>
							<ul>
								<li><a href="passwordchange.php">Chang epassword</a></li>
								<li><a href="passwordget.php">Forget password</a></li>
								<li><a href="#">Change account details</a></li>
								<li><a href="userreg.php">Create new account</a></li>
							</ul>
						</li>
						<li>
							<h2> Event Categories</h2>
							<ul>
								<li><a href="#">Sports</a></li>
								<li><a href="#">Workshops</a></li>
								<li><a href="#">Confrience</a></li>
								<li><a href="#">Other events</a></li>
								
							</ul>
						</li>
						<li>
						<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="230" height="190">
      <param name="movie" value="mahilan.swf">
      <param name="quality" value="high">
      <embed src="fff.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="230" height="200"></embed>
    </object>	
						</li>
					</ul>
				</div>
